package org.dizem.freepl0.gui.panel;

import org.dizem.freepl0.gui.controller.FPController;

import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

/**
 * Created by IntelliJ IDEA.
 * User: DIZEM
 * Date: 11-2-2
 * Time: 下午3:58
 */
public class EditPanel extends JEditorPane  {
	private static final Font FONT = new java.awt.Font("Envy Code R", Font.PLAIN, 14);
	private String filename;
	public EditPanel(String code, String filename) {
		this.setText(code);
		this.filename = filename;
		init();
	}


	public void clear() {
		setText("");
	}

	private void init() {
		//setFont(FONT);
	}

	public String getFilename() {
		return filename;
	}
}

